package fr.pascal.old;

import java.util.ArrayList;
import java.util.List;

public class User {

	private int age = 29;
	private String name = "mkyong";
	private List<String> messages = new ArrayList<String>() {

		private static final long serialVersionUID = 5472629422074900474L;

		{
			add("msg1");
			add("msg2");
			add("msg3");
		}
	};

//	public User() {
//	}

//	public User(int age, String name, List<String> messages) {
//		super();
//		this.age = age;
//		this.name = name;
//		this.messages = messages;
//	}


	@Override
	public String toString() {
		return "User [age=" + age + ", name=" + name + ", messages=" + messages
				+ "]";
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<String> getMessages() {
		return messages;
	}

	public void setMessages(List<String> messages) {
		this.messages = messages;
	}
}
